package site.luojie.business.code.service;

import site.luojie.common.vo.ResultVo;

/**
 * @author jie.luo
 * @since 2020/9/16
 */
public interface CodeService {

    /**
     * 发送验证码
     *
     * @param email 邮箱
     */
    void sendVerifyCode(String email);

    /**
     * 校验验证码
     *
     * @param email      邮箱
     * @param verifyCode 验证码
     * @return is matcher ?
     */
    ResultVo<Boolean> verifyCodeCheck(String email, String verifyCode);
}
